﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QYmall.Core.Model.Models
{
    /// <summary>
    /// 店铺类型
    /// </summary>
    public class MerchantStore
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        [Display(Name = "类型名称")]
        [StringLength(128)]
        public string? Title { get; set; }

        /// <summary>
        /// 要求说明
        /// </summary>
        [Display(Name = "要求说明")]
        [StringLength(512)]
        public string? Remark { get; set; }

        /// <summary>
        /// 排序数字
        /// </summary>
        [Display(Name = "排序数字")]
        public int SortId { get; set; } = 99;

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime AddTime { get; set; } = DateTime.Now;
    }
}
